package com.longge;

public class RepeatedSubstringPattern {
    public boolean repeatedSubstringPattern(String s) {

        String str = s + s;
        String subStr = str.substring(1, str.length() - 1);
        return subStr.contains(s);
    }
}
